package com.Logistics.controller;

import com.Logistics.fegin.PdAuthUserServiceFegin;
import com.Logistics.mycommon.pojo.pdauth.PdAuthUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/pdordercargo")
public class Csa {
    @Autowired
    PdAuthUserServiceFegin pdAuthUserServiceFegin;
    @PostMapping("/csa")
    String csa(){
        return "hello dl";
    }
    @PostMapping("/login")
    HashMap<Boolean, PdAuthUser> login(@RequestBody HashMap<String,String> map){
        return pdAuthUserServiceFegin.XClogin(map);
    }
}
